package com.suxii.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suxii.pojo.ChatUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChatUserMapper extends BaseMapper<ChatUser> {

    @Select("select * from chat_user")
    List<ChatUser> list();

    /*
    查询账户
     */
    @Select("select uid,password from chat_user where uid=#{uid} and password=#{password}")
    ChatUser isUser(ChatUser chatUser);
}
